package com.ren.weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserRegParam {
    @NotNull(message = "用户名不能为空")
    @Size(min = 6, max = 12, message = "用户名长度必须在6到12位之间")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "电子邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "手机号",required = true)
    private String phone;

}
